package com.mixcus.server.service;

import com.mixcus.server.dto.UserDto;
import com.mixcus.server.dto.UserResultDto;

public interface UserService {

    //根据用户账号获取密码
    String getPassword(String userName);
    //查询用户名是否存在
    int hasUserName(String userName);

    Character getUserRole(String userName);

    void addUser(UserDto userDto);

    String getToken(UserDto userDto);

    UserResultDto getUserResult(UserDto userDto);
}
